package com.stars.entity.sys;

import com.stars.common.base.entity.BaseAppEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 资源信息
 */
@Data
@Table(name = "system_permission")
public class SystemPermission extends BaseAppEntity {

    /**
     * 上级id
     */
    private String pid;

    /**
     * 菜单名称
     */
    @NotNull(message = "菜单名称不能为空!")
    @Column(name = "per_name")
    private String perName;
    /**
     * 菜单类型
     */
    @NotNull(message = "菜单类型不能为空!")
    @Column(name = "per_type")
    private String perType;

    /**
     * 菜单图标
     */
    @Column(name = "per_icon")
    private String perIcon;

    /**
     * 访问路径
     */
    @Column(name = "per_url")
    private String perUrl;

    /**
     * 前端跳转路由url
     */
    @Column(name = "per_routing_url")
    private String perRoutingUrl;

    /**
     * 是否启用（0=启用，1=禁用）
     */
    @Column(name = "per_enabled")
    private Integer perEnabled;

    /**
     * 层级
     */
    @Column(name = "layer")
    private Integer layer;
    /**
     * 排序号
     */
    @Column(name = "sort_num")
    private Integer sortNum;
    /**
     * 按钮权限标识
     */
    @Column(name = "PER_BTN_VALID")
    private String perBtnValid;


}